#ifndef ITEMDOUBLE_H
#define ITEMDOUBLE_H


#include "config/ConfigItem.h"


class ItemDouble : public ConfigItem {
    Q_OBJECT
public:

    double get();
    void set(const double &value);
protected:
    QWidget *createWidget(WidgetStyle s) override;
    void update(QWidget *widget, UpdateOption option) override;
    void writeToData(QDataStream &stream) const override;
    void readFromData(QDataStream &stream) override;
private:
    double m_data = 0.0;
};

#endif // ITEMDOUBLE_H
